package com.example.springbootxscjxt.service;

import com.example.springbootxscjxt.entity.Student;
import com.example.springbootxscjxt.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {
    @Autowired
    private StudentMapper studentMapper;
    public  int save(Student student){
        return studentMapper.add(student);

    }

    public  int updatee(Student student){
        return  studentMapper.update(student);
    }
}
